package cn.kgc.userprovider.dao;

import cn.kgc.userprovider.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @ClassName UserDaoImpl
 * @Description TODO
 * @Author yaozhaobao
 * @Date 2021/1/21 14:05
 * @Version 1.0
 **/
@Component
public class UserDaoImpl implements  UserDao {



    @Override
    public User valilogin(String username, String pwd) {
        //调用dao接口验证的
        if(username.equals("yao")&&pwd.equals("123123")){
            //验证用户名密码成功
            User user = new User();
            user.setUsername("yao");
            user.setPwd("123123");
            return user;
        }
            return null;
    }




}
